Ext.onReady(function(){
	var form = new Ext.form.FormPanel({
		labelAlign:'right',
		labelWidth:50,
		url:'form.jsp'
	})
	form.add(new Ext.form.TextField({
		fieldLabel:'文本框',
		name:'text'
	}))
	form.addButton({
		text:'按钮',
		handler:function(){
			//form.getForm().submit();
			form.getForm().getEl().dom.action = 'form.jsp';
			form.getForm().getEl().dom.submit();
		}
	})
	form.render(Ext.getBody())
})